import request from "@/api/request";

// 导出产品编码状态清单
export const exportTaskCode = (data) => {
    return request({
        url: "/zn/ec/ps",
        method: "post",
        data: data,
        headers: {"Content-Type": "application/json"},
        responseType: "blob",
    });
};

// 产品编码状态清单
export const getTaskCode = (data) => {
    return request({
        url: "/zn/ec/psJsp",
        method: "post",
        headers: {"Content-Type": "application/json"},
        data,
    });
};

// 导出产品编码工序状态
export const exportTaskWork = (data) => {
    return request({
        url: "/zn/ec/pwp",
        method: "post",
        data: data,
        headers: {"Content-Type": "application/json"},
        responseType: "blob",
    });
};

// 产品编码工序状态
export const getTaskWork = (data) => {
    return request({
        url: "/zn/ec/pwpJsp",
        method: "post",
        headers: {"Content-Type": "application/json"},
        data,
    });
};

// 产品序列号查询
export const getTaskSerial = (data) => {
    return request({
        url: "/zn/ec/piJsp",
        method: "post",
        headers: {"Content-Type": "application/json"},
        data,
    });
};

// 导出产品序列号查询
export const exportTaskSerial = (data) => {
    return request({
        url: "/zn/ec/pi",
        method: "post",
        data: data,
        headers: {"Content-Type": "application/json"},
        responseType: "blob",
    });
};

//导出销售单
export const exportSaleso = (data) => {
    return request({
        url: "/zn/ec/so",
        method: "post",
        data: data,
        headers: {"Content-Type": "application/json"},
        responseType: "blob",
    });
};

// 导出销售出库单
export const exportOO = (data) => {
    return request({
        url: "/zn/ec/oo",
        method: "post",
        data: data,
        headers: {"Content-Type": "application/json"},
        responseType: "blob",
    });
};

// 销售出库单查询
export const getOO = (data) => {
    return request({
        url: "/zn/ec/oos",
        method: "post",
        headers: {"Content-Type": "application/json"},
        data,
    });
};

// 导出质检数据
export const exportQe = (data) => {
    return request({
        url: "/zn/ec/qe",
        method: "post",
        data: data,
        headers: {"Content-Type": "application/json"},
        responseType: "blob",
    });
};

// 质检数据查询
export const getQe = (data) => {
    return request({
        url: "/zn/ec/qes",
        method: "post",
        headers: {"Content-Type": "application/json"},
        data,
    });
};

// 导出发货数据
export const exportSde = (data) => {
    return request({
        url: "/zn/ec/sde",
        method: "post",
        data: data,
        headers: {"Content-Type": "application/json"},
        responseType: "blob",
    });
};

// 发货数据查询
export const getSde = (data) => {
    return request({
        url: "/zn/ec/sdes",
        method: "post",
        headers: {"Content-Type": "application/json"},
        data,
    });
};